<?php  if(!empty($output['lottery_list']) && is_array($output['lottery_list'])){ ?>
    <?php foreach($output['lottery_list'] as $k=>$v) { ?>
        <li>
            <span class="num"><?php echo $v['lottery_ym']; ?></span>
            <span class="name">获奖用户：<?php echo $v['nickname']; ?></span>
            <a href="index.php?act=bargain_pk&op=index&time=<?php echo $v['lottery_ym']; ?>" class="details">查看详情</a>
        </li>
    <?php  }?>
<?php  } ?>